//------------------------------------------------------------------------------
#include <QtDebug>
#include "CRequest.h"
//------------------------------------------------------------------------------
CRequest::CRequest(void) : QObject() {
	requestDate=QDateTime::currentDateTime();
}
//------------------------------------------------------------------------------
QString CRequest::getHashKey(void) { 
	QString key=SALT+"_"+token+"_"+getRequestDateFormated()+"_"+(data != 0 ? data->getKey() : "");
	return QCryptographicHash::hash(key.toUtf8(),QCryptographicHash::Md5).toHex();
}
//------------------------------------------------------------------------------